package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Permission;

/**
 * 
 * @author Marius Dumitriu - (May 22, 2010 - 12:42:03 AM)
 * 
 */
public interface PermissionDao extends HibernateDAO<Permission, Long> {
	@Repository(value = "permissionDao")
	public static class RolesDaoImpl extends HibernateDAOImpl<Permission, Long> implements PermissionDao {

		@Autowired
		public RolesDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Permission.class);
		}

	}

}
